package com.foreknow.demo7;

public class Person {
    private String name;
    private static Person singleton = new Person();
    private Person() {

    }

    public static Person getSingleton() {
        return singleton;
    }

    public static void setSingleton(Person singleton) {
        Person.singleton = singleton;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
